﻿<UserControl x:Class="MyRecipeBook.UI.Controls.ControlWindowTitle"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Style="{DynamicResource StyleControlWindowTitle}"
             x:Name="UserControlWindowTitle"
             Height="85">
    
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/MyRecipeBook.UI;component/Themes/BrushDictionary.xaml" />                
                <ResourceDictionary Source="/MyRecipeBook.UI;component/Themes/ControlDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Border Style="{DynamicResource StyleControlWindowTitleBorder}" Height="75">
        <TextBlock x:Name="TitleText" Text="{Binding ElementName=UserControlWindowTitle, Path=WindowTitle}" VerticalAlignment="Center" />
    </Border>
</UserControl>
